feat: Add demo/sandbox mode for risk-free platform exploration (#98)#201
Merged
feat: Add demo/sandbox mode for risk-free platform exploration (#98)#201
Conversation
Implement a complete demo mode allowing users to try TipStream without connecting a wallet or spending real STX. This lowers the barrier for new users and allows hackathon judges to experience full functionality. New files: - DemoContext.jsx: Provider with mock data, simulated tip sending, demo platform stats, demo leaderboard, and demo balance - DemoBanner.jsx: Amber banner indicating demo mode is active with an exit button to switch back to live mode Changes: - AnimatedHero: Replace 'Learn More' with 'Try Demo' button and add 'No wallet needed' hint text - App.jsx: Wire demo context, add handleTryDemo handler, show DemoBanner, treat demo mode as authenticated state - main.jsx: Wrap app in DemoProvider - Header: Show demo wallet indicator and 'Connect Real Wallet' button text when in demo mode - SendTip: Simulate tip sending with fake tx IDs and 800ms delay, use demo balance instead of real balance in demo mode - PlatformStats: Use mock stats data in demo mode, show Demo/Live badge indicator badge indicator se mock stats data in din demo mode - RecentTips: Use mock tip feed data in demo mode - TipHistory: Use mock user stats and tip history in demo mode Closes #98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a complete demo/sandbox mode allowing users to try TipStream without connecting a wallet or spending real STX. Lowers the barrier for new users and hackathon judges.
Changes
New Files
Modified Files
handleTryDemohandler, DemoBanner, treats demo as authenticatedTesting
Closes #98